namespace KYO.DAL {
    using System;
    using System.Text;
    using System.Collections;
    using System.Collections.Generic;
    
    public partial class Tab : ObjectPersistence.ORNetBaseType {
        public Tab() {
        }
        public Tab(string CSS, string Name, int ParentId, bool Published, int ViewOder) {
            this.CSS = CSS;
            this.Name = Name;
            this.ParentId = ParentId;
            this.Published = Published;
            this.ViewOder = ViewOder;
        }
        public Tab(int TabId, string CSS, string Name, int ParentId, bool Published, int ViewOder) {
            this.TabId = TabId;
            this.CSS = CSS;
            this.Name = Name;
            this.ParentId = ParentId;
            this.Published = Published;
            this.ViewOder = ViewOder;
        }

        public int TabId {
            get {
                return _TabId;
            }
            set {
                this._TabId = value;
                this.ChangesMade = true;
            }
        }
        public string CSS {
            get {
                return _CSS;
            }
            set {
                this._CSS = value;
                this.ChangesMade = true;
            }
        }
        public string Name {
            get {
                return _Name;
            }
            set {
                this._Name = value;
                this.ChangesMade = true;
            }
        }
        public int ParentId {
            get {
                return _ParentId;
            }
            set {
                this._ParentId = value;
                this.ChangesMade = true;
            }
        }
        public bool Published {
            get {
                return _Published;
            }
            set {
                this._Published = value;
                this.ChangesMade = true;
            }
        }
        public int ViewOder {
            get {
                return _ViewOder;
            }
            set {
                this._ViewOder = value;
                this.ChangesMade = true;
            }
        }


        public BusinessLayerHelper.PersistentList<KYO.DAL.ModuleIntall> ModuleIntallColl {
            get {
                if ((_ModuleIntallColl == null)) {
                    if (IsNew) {
                        _ModuleIntallColl = new BusinessLayerHelper.PersistentList<KYO.DAL.ModuleIntall>();
                    }
                    else {
                        ObjectPersistence.TabAssembler _tempAssem = new ObjectPersistence.TabAssembler();
                        _ModuleIntallColl = _tempAssem.GetModuleIntallColl(TabId);
                    }
                }
                return _ModuleIntallColl;
            }
            set {
                this._ModuleIntallColl = value;
            }
        }


        private int _TabId;
        private string _CSS;
        private string _Name;
        private int _ParentId;
        private bool _Published;
        private int _ViewOder;
        private BusinessLayerHelper.PersistentList<KYO.DAL.ModuleIntall> _ModuleIntallColl;


        public bool IsModuleIntallCollNull() {
            return (this._ModuleIntallColl == null);
        }
        public string ROKeyString {
            get {
                return ("KYO.DAL.Tab" + TabId.ToString());
            }
        }

    }
}
